<?php

namespace Addons\Zmphoto\Controller;
use Addons\Zmphoto\Controller\BaseController;

class StatisticsController extends BaseController{
	function _initialize() {
		parent::_initialize();
	}
    // 通用插件的列表模型
	public function lists() {
		$model_name = I("model",'photo_zm_data');
		if(is_numeric($model_name)){
			$model_name = M('model')->where('id = '.$model_name)->getField('name');
		}
		$model = $this->getModel ($model_name);
		$model ||  $this->error ( '模型不存在' );
		// $map['uid']=$this->mid;
		// 
		$list_data = $this->_get_model_list ( $model, $page, 'id desc',$map);
		$this->assign ( $list_data );
		$this->display ();
	}

}